@extends('admin.index.layout')

@section('title', $title)

@section('content')
	{{--dd($data['0'])--}}
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                订单管理
                <small>订单编辑</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> 主页</a></li>
                <li><a href="#">订单管理</a></li>
                <li class="active">订单编辑</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <!-- left column -->
                <div class="col-md-12">
                    <!-- general form elements -->
                    <div class="box box-primary">
                        <div class="box-header with-border">
                            <h3 class="box-title">编辑</h3>
                        </div><!-- /.box-header -->
                        <!-- form start -->
                        <div>
                            <div class="title">
                                <span>时间:</span>
                                <span class="time">{{$list['time']}}</span> &nbsp; &nbsp; 
                                <span>订单号:</span>
                                <span class="order_num">{{$list['order_num']}}</span> &nbsp; &nbsp; 
                                <span>收货人:</span>
                                <span class="uname">{{$list['uname']}}</span> &nbsp; &nbsp; 
                                <span>总价:</span>
                                <span class="totalPrice">{{$list['totalPrice']}}</span><span>元</span>
                            </div>
                            <div class="list">
                                <table  id="example1" class="table table-bordered table-striped">
                                    <tr> 
                                        <th>商品ID</th><th>商品图片</th><th>商品名</th><th>单价</th><th>数量</th><th>状态</th>
                                    </tr>

                                    @foreach($data as $v)
                                    <tr>
                                        <td>{{$v->gid}}</td><td>{{$v->gname}}</td><td>{{$v->gname}}</td><td>{{$v->gprice}}元</td><td>{{$v->count}}</td><td>{{$v->order_status}}</td>
                                    </tr>
                                    @endforeach
                                </table>
                            </div>
                        </div>
                    </div><!-- /.box -->

                  

              

                

                </div><!--/.col (left) -->
                <!-- right column -->
     </div>
</section>
</div>
     <script type="text/javascript">
     	window.onload = function()
     	{

     		// alert($);
     		setInterval(function(){
     			$('#jg').fadeOut();
     			
     		}, 2000);

     	}

     </script>
              

@endsection